import copy
def use():
    a=[1,2,3,4]
    b=a
    print(a)
    print(b)
    print(id(a))
    print(id(b))
    a[1]=5
    print(a)
    print(b)
use()
def use_copy():
    a=[1,2,3]
    b=[4,5,6]
    c=[a,b]
    d=copy.copy(c)
    print('-'*50)
    print(c)
    print(d)
    print(id(c))
    print(id(d))
    a[1]=4
    print(c)
    print(d)

use_copy()
def use_deepcopy():
    a=[1,2,3]
    b=[4,5,6]
    c=[a,b]
    d=copy.deepcopy(c)
    print('-'*50)
    print(c)
    print(d)
    print(id(c))
    print(id(d))
    a[1]=4
    print(c)
    print(d)

use_deepcopy()